package edu.zcmu.seckill.service;

import edu.zcmu.seckill.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.zcmu.seckill.response.R;
import edu.zcmu.seckill.vo.OrderVo;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 唐诗
 * @since 2022-02-22
 */
public interface OrderService extends IService<Order> {

    int createOrder(Order order);

    R placeOrder(Integer id, HttpServletRequest request);

    R getOrderInfo(OrderVo orderVo,HttpServletRequest request);

    Boolean payNormalOrder(OrderVo orderVo, HttpServletRequest request);
}
